package cn.com.myshiro.service;

import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import cn.com.myshiro.bean.Sysuserrole;
import  cn.com.myshiro.dao.SysuserroleDao;

@Service
 public class SysuserroleService {


   @Autowired
   SysuserroleDao dao;


   public List<Sysuserrole> allSysuserrole(Map<Object,Object> map){
	     return dao.allSysuserrole(map);
   }

   public void delSysuserrole(int id){
	   dao.delSysuserrole(id);
   }

   public Sysuserrole sysuserrole(int id){
	   return dao.sysuserrole(id);
   }

   public void updateSysuserrole(Sysuserrole sysuserrole){
	   dao.updateSysuserrole(sysuserrole);
   }

   public void addSysuserrole(Sysuserrole sysuserrole){
   	dao.addSysuserrole(sysuserrole);
   }

	public int countSysuserrole(){
		return dao.countSysuserrole();
	}
}
